{include file='common/head'}
<script>
    document.title = "友情链接 | {:config('system.base.title')} "
</script>
<style>
    .link-list .data,
    .tool {
        text-align: right;
    }
    .link-list .url{
        display: block;
        text-align: right;
    }
    .link-list .container{
        border-radius: 10px;
        margin-top: 20px;
    }
</style>
<div class="layout">
    <span class="layui-breadcrumb">
        <a href="{:url('/index/index/index')}">首页</a>
        <a><cite>友情链接</cite></a>
    </span>
    
    <div class="link-list">
        {if $list}
        <div class="layui-bg-gray container" style="padding: 16px;">
        <div class="layui-row layui-col-space15">
        {volist name="list" id="link"}
              <div class="layui-col-xs6">
                <div class="layui-card">
                  <div class="layui-card-header layui-elip">{$link.web_name}</div>
                  <div class="layui-card-body">
                    {$link.web_description}
                    <a href="{$link.web_href}" target="_blank" 
                    class="url layui-font-blue layui-font-13">立即访问</a>
                  </div>
                </div>
              </div>
        {/volist}
    </div>
        </div>
          {else/}
          <p class="no-data">暂无友联哦！来互加个友联吧！</p>
          {/if}
    </div>
    <div class="tool">
        <button class="layui-btn layui-btn-sm layui-bg-blue layui-margin-3" type="button"
            onclick="window.location.href='{:url(\'/index/link/apply\')}'">申请友联</button>
    </div>
</div>
{include file='common/bottom'}
<script>

</script>